import http from '@/plugins/axios'

/**
 * 查询投诉建议子表
 */
export function getSuggestionDetailList(data) {
    let res = http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/getComplaintSuggestionDetailList',
        data
    })
    return res;
}

/**
 * 通过id查询每个投诉建议
 */
export function getSuggestionById(data) {
    let res = http({
        method: 'POST',
        url: '/new/ykf/customer/complaint/getComplaintSuggestion',
        data
    })
    return res;
}

/**
 * 通过id查询每个投诉建议明细
 */
export function getSuggestionDetailById(data) {
    let res = http({
        method: 'POST',
        url: '/new/ykf/customer/complaint/getComplaintSuggestionDetail',
        data
    })
    return res;
}

/**
 * 添加投诉建议子表
 */
export function addSuggestionDetailList(data) {
    let res = http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/addComplaintSuggestionDetail',
        data
    })
    return res;
}

/**
 * 编辑投诉建议子表
 */
export function editSuggestionDetailList(data) {
    let res = http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/editComplaintSuggestionDetail',
        data
    })
    return res;
}

/**
 * 查询字典明细
 * @returns
 */
export function getdictIdList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/customer/complaint/parentId',
        data
    })

}

/**
 * 查询符合的客服
 * @returns
 */
export function getkefuList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/getKeFuList',
        data
    })
}

/**
 *  查询客户名称
 * @param data
 */
export function getCustomerList() {
    return http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/getCustomerList',
    })
}
/**
 *  查询公司名称
 * @param data
 */
export function getCompanyList() {
    return http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/getCompanyList',
    })
}

/**
 *  根据客户查询店铺
 * @param data
 */
export function getCustomerShopList(data){
    return http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/getCustomerShopList',
        data
    })
}

/**
 * 添加投诉明细
 * @param data
 */
export function getTsmx(data){
    return http({
        method: 'POST',
        url: '/new/ykf/customer/complaintDetail/getTsmx',
        data
    })
}

/**
 * 查询业务对接人
 * @returns
 */
export function getUserList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/customer/getUserListByRoleId',
        data
    })
}

